/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: 任静
 * @Date: 2020-11-11 16:19:38
 * @LastEditors: 任静
 * @LastEditTime: 2020-11-14 10:11:19
 */
import request from '@/utils/request'
//首页\分类tab切换头接口
export const getHomeList=(params)=>{
    return request.post('/service/home',params)
    }
//首页\分类tab切换内容区接口
export const getClassifly=(params)=>{
return request.post('/service/rankPage',params)
}
//首页轮播图接口
export const getBanner=(params)=>{
    return request.post('/service/carouselList',params)
}
//首页图文混批视频区域
export const getHomeContent=(params)=>{
    return request.post('/service/articlePage',params)
}
//详情页接口
export const getDetail=(params)=>{
    return request.post('/service/rankDetail',params)
}
//分类页获取所有列表数据
export const getClassifyList=(params)=>{
    return request.post('/service/rankCategoryList',params)
}
//热门搜索接口
export const getHotSearch=(params)=>{
    return request.post('/service/hotList',params)
}
//输入内容搜索接口
export const getSearch=(params)=>{
    return request.post('/service/search',params)
}
//搜索提示接口
export const getSearchTips=(params)=>{
    return request.post('/serve/searchTips',params)
}
// GET /api/service/rankSharePreview?
// mid=0&rankId=31fc49ebe7e14270ac6c622d853f8dba&rankMode=1&dataType=1 HTTP/1.1
//详情页分享图片接口
export const getSavePhoto=(mid,rankId,rankMode,dataType)=>{
    return request.get(`/serve/rankSharePreview?mid=${mid}&rankId=${rankId}&rankMode=${rankMode}&dataType=${dataType}`)
}